<?php
/**
 * Created by PhpStorm.
 * User: taj
 * Date: 14-10-4
 * Time: 下午4:22
 */

class Olderpclientapi
{
    /**
     * 老erp的接口功能
     */
    public static function getopid($opid_arr)
    {
        require_once(Kohana::find_file('vendor','phprpc/phprpc_client'));
        $server_url = Kohana::$config->load('olderp_server_url');
        $server_url = $server_url['server']."/kohana/index.php/Putdata/getopid";
        $client     = new PHPRPC_Client($server_url);
        $results    = $client->getinfo($opid_arr);
        return $results;
    }
}